@charset "utf-8";
.mj-input {
	display:block;
    position: relative;
    vertical-align: top;
}
.mj-input-control {
    width: 100%;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    height: 32px;
    line-height: 100%;
    padding: 0 10px;
    overflow: hidden;
    color: var(--gray6);
    font-size: 14px;
    border-radius: 3px;
    box-sizing: border-box;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out 0s;
    vertical-align: middle;
}
.mj-input-control:hover {
    border-color: var(--gray11);
}
.mj-input-control.error {
    border-color: var(--error);
    color: var(--error);
}
.mj-input-control:focus,
.mj-input-control.focus {
    outline: none;
    border-color: var(--focus);
    color: #333;
    box-shadow: 2px 2px 5px #ebeaea;
}
.mj-input-control.disabled {
    background-color: var(--gray16);
    cursor: not-allowed;
    border-color: var(--disabled);
}

.mj-textarea.disabled {
    background-color: var(--gray16);
    cursor: not-allowed;
    border-color: var(--disabled);
}

.mj-input-prefix,.mj-input-suffix,.mj-input-word-count {
    position: absolute;
    width: 32px;
    height: 30px;
    line-height: 30px;
    display: block;
    z-index: 2;
    text-align: center;
    bottom:0;
    margin:1px;
    background:rgba(255,255,255,.8);
    border-radius:3px;
}
.mj-input span i {
    font-size: 18px;
}
.mj-input .icon-close {
    display: none;
}
.mj-input:hover .icon-close {
    display: block;
}
.mj-input .mj-input-prefix {
    left: 0;
}
.mj-input .mj-input-suffix {
    right: 0;
}
.mj-input-control-prefix {
    padding-left: 32px;
}
.mj-input-control-suffix {
    padding-right: 32px;
}
.mj-input-word-count {
    right: 0;
    padding: 0 5px;
    width: auto !important;
}
.mj-input-control-count {
    padding-right:45px;
    right:1px;
    background:var(--white);
    border-radius: 3px;
}
.mj-textarea {
    display: block;
    resize: vertical;
    padding: 5px 10px;
    line-height: 1.5;
    box-sizing: border-box;
    width: 100%;
    font-size: inherit;
    color: #606266;
    background-color: #fff;
    background-image: none;
    border: 1px solid #dcdfe6;
    border-radius: 3px;
    transition: border-color .2s cubic-bezier(.645,.045,.355,1);
}
.mj-textarea:focus {
    outline: none;
    border-color: var(--focus);
    color: #333;
    box-shadow: 2px 2px 5px #ebeaea;
}
/*size*/
.mj-input-large .mj-input-control {height: 40px;line-height:40px;font-size: 16px;}
.mj-input-large span {height: 38px;line-height: 38px;}
.mj-input-large span i {font-size: 22px;}
.mj-input-small .mj-input-control {height: 24px;line-height:24px;font-size: 12px;}
.mj-input-small span {height: 22px;line-height: 22px;width:26px;}
.mj-input-small .mj-input-word-count {font-size: 12px;}
.mj-input-small .mj-input-control-suffix {padding-right:26px;}

/*group 存在slot插槽*/
.mj-input-group {display:flex;}
.mj-input-group .mj-input-control {border-top-right-radius: 0;border-bottom-right-radius: 0;}
.mj-input-group button {border-top-left-radius:0;border-bottom-left-radius:0;border-left:none;}
.mj-input-group-prepend {background: #f5f7fa;border: 1px solid var(--border-color);border-radius:3px 0 0 3px;border-right:0;display:flex;align-items:center;padding:0 10px;}
.mj-input-group-prepend + .mj-input-control {border-top-left-radius:0;border-bottom-left-radius:0;}
.mj-input-group-append {display:flex;align-items:center;}